package ltd.hello.trik.snake;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import lombok.val;
import processing.core.PVector;

/**
 * +----------------------------------------------------------------------
 * |
 * +----------------------------------------------------------------------
 * | <a href="https://www.hellotrik.ltd">Copyright (c) 2024~2025 </a>.
 * +----------------------------------------------------------------------
 * | Licensed MIT
 * +----------------------------------------------------------------------
 * | 作者: 🦠 matrixg 👾 <hellotrik@foxmail.com>
 * | 日期: 2024/9/9
 * +----------------------------------------------------------------------
 */
@Getter
@Setter
@SuperBuilder
public class Head extends Cell{
    @Builder.Default
    protected PVector deadColor=new PVector(255,0,0);
    @Builder.Default
    protected PVector normalColor=new PVector(0,0,255);


    public void show(boolean dead) {
        color.set(dead?deadColor:normalColor);
        super.show();
    }
}
